package com.beta.vo.order;

import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * Created by vector on 2017/1/9.
 */
@Getter
@Setter
public class OrderVO {

    private Integer id;

    private String code;

    private BigDecimal amount;

    private BigDecimal price;

    private BigDecimal weight;

    private Integer quantity;

    private BigDecimal freight;

    private Date createdAt;

    private String mode;

    private String payMode;

    private String status;

    private String statusText;

    private String payStatus;

    private String payStatusText;

    private Boolean collectable;

    private Boolean cancelable;

    private Boolean confirmable;

    private Boolean payable;

    private String receiverName;

    private String receiverPhone;

    private String receiverAddress;

    private String payUrl;

    private List<OrderItemVO> orderItems;

    public String getHumanStatusName() {
        return this.getStatusText();
    }

    public String getHumanPayStatusName() {
        return this.getPayStatusText();
    }

    public String getPayurl() {
        return this.payUrl;
    }
}
